package com.hujiang.basic.search.index;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;

import com.hujiang.basic.framework.plugin.mq.MqConfig;
import com.hujiang.basic.framework.rest.validation.ValidateProcessor;
import com.hujiang.basic.search.common.component.ElasticSearchConfig;

@Configuration
@Import({ MqConfig.class, ElasticSearchConfig.class })
@ComponentScan({ "com.hujiang.basic.search.handler", "com.hujiang.basic.framework" })
public class IndexServerConfig {
    @Bean
    public ValidateProcessor validator(){
        return new ValidateProcessor();
    }
}
